package com.tj.demo.codesnip.designoatten.stategy;

import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;

/**
 * @ClassName: Main
 * @Author: TanJun
 * @Date: 2021/5/25 1:08
 * @Description:
 * @Version: 1.0
 * @Copyright:
 */
@Slf4j
public class Main {

    public static void main(String[] args) {
        Dog[] dogs = {new Dog(1),new Dog(5),new Dog(3)};
        Soter<Dog> soter = new Soter<>();
        soter.sort(dogs,new DogComprator());
        log.info(Arrays.toString(dogs));
    }
}
